package cn.eeepay.framework.service.risk;

import cn.eeepay.framework.db.pagination.Page;
import cn.eeepay.framework.model.risk.TransLimitRule;
import cn.eeepay.framework.model.risk.TransLimitWhite;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface TransLimitService {

    List<TransLimitRule> selectTransLimitRuleList(TransLimitRule info, Page<TransLimitRule> page);

    void importTransLimitRuleList(TransLimitRule info, HttpServletResponse response) throws Exception;

    TransLimitRule selectTransLimitRuleDetail(Long id);

    int addTransLimitRule(TransLimitRule info, Map<String, Object> msg);

    int updateTransLimitRule(TransLimitRule info, Map<String, Object> msg);

    int updateTransLimitRuleStatus(Integer status,Long id);

    int deleteTransLimitRule(Long id);

    List<Map> selectTransLimitRuleLog(Long limitRule);

    List<TransLimitWhite> selectTransLimitWhiteList(TransLimitWhite info, Page<TransLimitWhite> page);

    void importTransLimitWhiteList(TransLimitWhite info, HttpServletResponse response) throws Exception;

    TransLimitWhite selectTransLimitWhiteDetail(Long id);

    int selectTransLimitWhiteMerCount(String merchantNo,String limitAction);

    int selectTransLimitWhiteMerCountById(String merchantNo,String limitAction,Long id);

    int insertTransLimitWhite(TransLimitWhite info);

    int updateTransLimitWhite(TransLimitWhite info);

    int updateTransLimitWhiteStatus(Integer status,Long id);

    int deleteTransLimitWhite(Long id);
}
